package com.gismore.demo.db.web;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.gismore.demo.db.domain.SecPermission;
import com.gismore.demo.db.service.ISecPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * <p>
 *   前端控制器
 * </p>
 *
 * @author lei
 * @since 2017-05-25
 */
@Controller
@RequestMapping("/sec/permission")
public class SecPermissionController {

	@Autowired
	private ISecPermissionService secPermissionServiceImpl;

	@RequestMapping(value = "",method = RequestMethod.GET)
	public List<SecPermission> findAll(){
		EntityWrapper<SecPermission> wrapper = new EntityWrapper<>();
		return secPermissionServiceImpl.selectList(wrapper);
	}
}
